function P = projectView(Q, project_id)

%Presents all the data related to a Project identified by the project_id

%Romesh Stanislaus May 2010

if isnumeric(project_id)
    project_id = num2str(project_id);
end

S1 = ['<S3QL><select>*</select><from>collections</from><where><project_id>',...
    project_id,'</project_id></where></S3QL>'];


Q.X = S1;

[D1,Q]=s3db_read(Q); % -2
%D1 will be a struct which has among other item_id wich can be referenced
%by D1(1).item_id
pause(5);
P = D1;